/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spring;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.FileSystemResource;

/**
 *
 * @author Alexx
 */
public class MainServer {
    
    public static void main(String[] args) 
    {
        BeanFactory factory = new XmlBeanFactory(new FileSystemResource("E:\\Книги\\java\\dz\\TicTacToe\\src\\config.xml"));
        Server server = (Server) factory.getBean("server");
       // server.hello();
        IServer iserver = server.getWorkStation();
        iserver.start();
        
//        BeanFactory factory = new XmlBeanFactory(new FileSystemResource("E:\\Книги\\java\\dz\\TicTacToe\\src\\config.xml"));
//        Server server = (Server) factory.getBean("server");
//        server.hello();
    }
    
}
